<%@ Page Language="C#" MasterPageFile="~/MasterPage/EmployeeMasterPage.master" AutoEventWireup="true" CodeFile="EmployeeManager.aspx.cs" Inherits="EmployeePage_EmployeeManager" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:MultiView ID="MultiView1" runat="server" ActiveViewIndex="0">
        <asp:View ID="View1" runat="server">
            <table style="width: 576px; height: 313px">
                <tr>
                    <td style="width: 345px; height: 24px">
                        <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LinkButton2_Click">Addnew</asp:LinkButton></td>
                    <td style="width: 393px; height: 24px">
                    </td>
                    <td style="width: 154px; height: 24px">
                        <asp:DropDownList ID="dlType" runat="server" AutoPostBack="True" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                            <asp:ListItem>Admin</asp:ListItem>
                            <asp:ListItem>Department</asp:ListItem>
                            <asp:ListItem>Technical</asp:ListItem>
                            <asp:ListItem>RetailEmployee</asp:ListItem>
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 132px" align="center" valign="top">
                        <asp:GridView ID="gvEmployee" runat="server" AutoGenerateColumns="False" CellPadding="4"
                            ForeColor="#333333" GridLines="None" Width="562px" OnRowCommand="gvEmployee_RowCommand">
                            <RowStyle BackColor="#EFF3FB" />
                            <Columns>
                                <asp:BoundField DataField="employeeID" HeaderText="ID" />
                                <asp:BoundField DataField="employeeUserName" HeaderText="    User Name     " />
                                <asp:BoundField DataField="employeeFullName" HeaderText="      Full Name    " />
                                <asp:BoundField DataField="employeeAddress" HeaderText="Adress" />
                                <asp:BoundField DataField="employeeEmail" HeaderText="Email" />
                                <asp:BoundField DataField="typeName" HeaderText="Type" />
                                <asp:TemplateField HeaderText="Detail" ShowHeader="False">
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CommandArgument='<%# Eval("employeeID") %>'
                                            CommandName="Detail">Detail</asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                            <EditRowStyle BackColor="#2461BF" />
                            <AlternatingRowStyle BackColor="White" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td style="width: 345px; height: 28px">
                    </td>
                    <td style="width: 393px; height: 28px">
                    </td>
                    <td style="width: 154px; height: 28px">
                    </td>
                </tr>
            </table>
        </asp:View>
        <asp:View ID="Detail" runat="server" EnableTheming="False">
         <center>
            <table style="width: 526px; height: 212px">
                <tr>
                    <td align="center" colspan="2">
                        Detail Of Employee</td>
                </tr>
                <tr>
                    <td style="width: 174px" align="right">
                        employeeID</td>
                    <td style="width: 305px">
                        <asp:TextBox ID="txtID" runat="server" ReadOnly="True"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 174px; height: 26px;" align="right">
                        User Name</td>
                    <td style="width: 305px; height: 26px">
                        <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox></td>

                </tr>
                <tr>
                    <td style="width: 174px; height: 26px;" align="right">
                        Password</td>
                    <td style="width: 305px; height: 26px">
                        <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Width="141px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 174px; height: 26px;" align="right">
                        Confirm Password</td>
                    <td style="width: 305px; height: 26px">
                        <asp:TextBox ID="txtConfirm" runat="server" TextMode="Password" Width="140px"></asp:TextBox>
                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPassword"
                            ControlToValidate="txtConfirm" ErrorMessage="password does not match"></asp:CompareValidator></td>
                </tr>
                <tr>
                    <td style="width: 174px" align="right">
                        Full name</td>
                    <td style="width: 305px">
                        <asp:TextBox ID="txtFullName" runat="server"></asp:TextBox></td>

                </tr>
                <tr>
                    <td style="width: 174px" align="right">
                        Address</td>
                    <td style="width: 305px">
                        <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 174px" align="right">
                        Email</td>
                    <td style="width: 305px">
                        <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 174px" align="right">
                        Phone</td>
                    <td style="width: 305px">
                        <asp:TextBox ID="txtPhone" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                    <td style="width: 174px; height: 24px" align="right">
                        Type</td>
                    <td style="height: 24px; width: 305px;">
                        <asp:DropDownList ID="dlType2" runat="server">
                        </asp:DropDownList></td>
                </tr>
                <tr>
                    <td style="width: 174px; height: 21px" align="left">
                    </td>
                    <td style="height: 21px; width: 305px;" align="left">
                        <asp:Button ID="btAdd" runat="server" Text="Add" Width="77px" OnClick="btAdd_Click" />
                        &nbsp;<asp:Button ID="btReset" runat="server" Text="Reset" OnClick="btReset_Click" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btDelete" runat="server" Text="Delete" OnClick="btDelete_Click" Visible="False" />
                        &nbsp;&nbsp;
                        <asp:Button ID="btBack" runat="server" CausesValidation="False" OnClick="btBack_Click"
                            Text="Back" /><br />
                        <asp:Label ID="lbMesss" runat="server" ForeColor="#00C000"></asp:Label>
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                        &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                    </td>
                </tr>
            </table>
           </center>
        </asp:View>
    </asp:MultiView>
</asp:Content>

